package com.gss.plugin.oauth2.exception;

import com.gss.entity.enums.ConstantEnum;
import org.springframework.security.oauth2.common.exceptions.OAuth2Exception;

/**
 * @Author liuCong
 * @Date 2021/12/7 11:16
 * @ClassName PlatformException
 * @Description
 */
public class CustomAuthException extends OAuth2Exception {
    private static final long serialVersionUID = 1L;

    private Integer errorCode;
    private String errorMessage;

    public CustomAuthException(String msg, Throwable t) {
        super(msg, t);
    }

    public CustomAuthException(String msg) {
        super(msg);
    }

    public CustomAuthException(ConstantEnum constantEnum) {
        this(constantEnum.getMsg());
    }

}
